package com.xjh.serverinspect.inspect.controller;

import com.xjh.serverinspect.inspect.service.InspectService;
import com.xjh.serverinspect.util.ResponseDTO;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 系统检测控制类
 * </p>
 *
 * @author xujinghui
 * @since 2024-10-14
 */
@RestController
@RequestMapping("/inspect")
public class InspectController {

    @Resource
    private InspectService inspectService;

    /**
     * 系统检查页面
     *
     * @return ResponseDTO
     */
    @GetMapping("/systemCheck")
    public ResponseDTO systemCheck() {
        return ResponseDTO.success(inspectService.systemCheck());
    }

}
